public class Simulator {

    Animal sound;
    void playSound(Animal animal)
    {
        sound=animal;
    }

     void  print()
     {
         System.out.println(sound.getAnimalName());
         System.out.println(sound.cry());


     }
}
